Add support for specifying optimization level

Fix #81