more portable compiler/link settings

Signed-off-by: Per Hallsmark <per@hallsmark.se>