Adds missing explicit return statements
Fixes POSIX system detection

Not a problem now but be wary of future rpaths versions.