fix "control reaches end of non-void function" warning
Linux: build with hardening flags by default