misc library additions/fixes
disable overly permissive assertion in emcc
enable previous assertion, properly
emcc --remove-duplicates option
fix test_fcntl
Merge pull request #488 from ehsan/fog

Fix the fog if the distance is negative
remove unneeded -O2 in test