Compil netbsd

Fix compilation on NetBsd
Fix harcoded python path in tests