OSX build

A few tweaks to let qucs-core compile smoothly on OSX.