Fixes come from dports. Problem and solution verified on FreeBSD using gcc48. Approved by: portmgr (bapt, implicit)